package com.wjk.kylin.config.web;

import com.github.tobato.fastdfs.FdfsClientConfig;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;

/**
 * @author admin
 * @description FastDFS 配置
 * @date 2021/1/7
 */
@Configuration
@Import(FdfsClientConfig.class) // 导入FastDFS-Client组件
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING) // 解决jmx重复注册bean的问题
public class FastDFSConfig {
    /**
     * oss文件上传
     * @param ossServer
     * @return
     */
//    @Bean
//    public OSSServerImpl getOssServerImpl(FastDFSServer ossServer){
//        OSSServerImpl ossServerImpl = new OSSServerImpl(ossServer);
//        return ossServerImpl;
//    }
}
